package com.example.demo.service;

import com.example.demo.entity.Order;

import java.util.List;


/**
 * orderService接口
 * 
 * @author ruoyi
 * @date 2025-05-15
 */
public interface IOrderService 
{
    /**
     * 查询order
     * 
     * @param orderid order主键
     * @return order
     */
    public Order selectOrderByOrderid(Long orderid);


    public List<Order> selectOrderBystate(Long userid);
    /**
     * 查询order列表
     * 
     * @param order order
     * @return order集合
     */
    public List<Order> selectOrderList(Order order);
    public Order getOrdersByOrdersn(String  ordersn);

    /**
     * 新增order
     * 
     * @param order order
     * @return 结果
     */
    public int insertOrder(Order order);

    /**
     * 修改order
     * 
     * @param order order
     * @return 结果
     */
    public int updateOrder(Order order);

    /**
     * 批量删除order
     * 
     * @param orderids 需要删除的order主键集合
     * @return 结果
     */
    public int deleteOrderByOrderids(Long[] orderids);

    /**
     * 删除order信息
     * 
     * @param orderid order主键
     * @return 结果
     */
    public int deleteOrderByOrderid(Long orderid);
}
